package com.shelpe.services.algorithm.configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Data;

@Data
@ConfigurationProperties(prefix="mobile.qscore")
public class MobileQscoreProperties {
	
	private int developmentDays = 2;
	private int keepingDays = 5;
	
	private int lowMobileQscore = 6;
	private int highMobileScore = 7;
	
	private float lowCpc = 1;
	private float highRoi = 2;
	
	private int hightFavShopCount = 100;
	
	private int pricingRatio = 300;
	private int mobileRatio = 400;
	
	public int calcMobilePriceBaseOnAverage(int price){
		float p = price;
		p = p * this.pricingRatio / 100;
		return (int) p;
	}
	
	public int calcPcPrice(int price){
		float p = price;
		p = p * 100 / this.mobileRatio;
		return (int) p;
	}
	
}
